import Vue          from 'vue';
import VueRouter    from 'vue-router';


Vue.use(VueRouter);

export default new VueRouter({
    mode: 'history',
    routes: [
        {
            path: '/login',
            component: require('./view/login.vue').default,
        },
        {
            path: '/',
            component: require('./view/main.vue').default,
            children: [
                {path: 'dishonesty',            component: require('./view/dishonesty').default},
                {path: 'exposure',              component: require('./view/exposure').default},
                {path: 'notice',                component: require('./view/notice').default},
                {path: 'banner',                component: require('./view/banner').default},
                {path: 'report',                component: require('./view/report').default},
                {path: 'user',                  component: require('./view/user').default},
                {path: 'ad',                    component: require('./view/ad').default},
                {path: '/statistics/notice',    component: require('./view/statistics/notice').default},
                {path: '/statistics/user',      component: require('./view/statistics/user').default},
                {path: '/statistics/page',      component: require('./view/statistics/page').default},
                {path: '/statistics/search',    component: require('./view/statistics/search').default},
            ],
        },
    ]
})
